<?xml version='1.0' encoding='UTF-8' ?>  
<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">    
<ui:composition 
    xmlns="http://www.w3.org/1999/xhtml"  
    xmlns:ui="http://java.sun.com/jsf/facelets"  
    xmlns:h="http://java.sun.com/jsf/html"  
    template="./template_default.xhtml"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:p="http://primefaces.org/ui"
    >  
    
    <ui:define name="complementTitreEtH1">
        Liste des utilisateurs &nbsp;&nbsp;&nbsp;[
    
        <h:commandLink action="#{compteBancaireBean.chargerCreerUnUtilisateur()}">  
          <h:graphicImage value="ressources/plus.png" alt="logoDelete" border="0" class="imgDelete" rendered="#{compteBancaireBean.connectedAdmin}"/>  
        </h:commandLink> 
        
        utilisateur]
        
    </ui:define>  

    <ui:define name="content">  
              
        <p:dataTable value="#{compteBancaireBean.listeUser}" var="item" emptyMessage="No customer found with given criteria" paginator="true" rows="10" rendered="#{compteBancaireBean.connectedAdmin}">
            <!--<p:inputText widgetVar="customerTable"></p:inputText>-->

            <p:column headerText="" width="40px">  

                <h:commandLink action="#{compteBancaireBean.supprimerUtilisateur(item)}" >  
                    <h:graphicImage value="ressources/delete.png" alt="logoDelete" border="0" class="imgDelete"/>  
                </h:commandLink> 
                &nbsp;
                <h:commandLink action="#{compteBancaireBean.chargerUpdateUser(item)}" >  
                    <h:graphicImage value="ressources/edit-icon.png" alt="logoEdit-icon" border="0" class="imgDelete"/>  
                </h:commandLink> 
                &nbsp;

            </p:column>

            <p:column sortBy="#{item.id}" filterBy="#{item.id}" filterMatchMode="contains">
                <f:facet name="header">
                    <h:outputText value="id"/>
                </f:facet>
                <h:outputText value="#{item.id}"/>
            </p:column>
            
            <p:column sortBy="#{item.login}" filterBy="#{item.login}" filterMatchMode="contains">
                <f:facet name="header">
                    <h:outputText value="login"/>
                </f:facet>
                <h:outputText value="#{item.login}"/>
            </p:column>
            
            <p:column headerText="more">  
                <f:facet name="header">
                    <h:outputText value="comptes bancaires"/>
                </f:facet>
                <h:commandLink action="#{compteBancaireBean.chargerComptesBancaires(item)}" value="Details"/> 
            </p:column>


        </p:dataTable>

        
        <!--</h:form>-->


    </ui:define>  

</ui:composition>  


